-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: logs query endpoint #5202
Conversation
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Signed-off-by: Ruihang Xia <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 7 out of 22 changed files in this pull request and generated 1 comment.
Files not reviewed (15)
- src/servers/src/http/logs.rs: Evaluated as low risk
- src/auth/src/permission.rs: Evaluated as low risk
- src/frontend/Cargo.toml: Evaluated as low risk
- src/frontend/src/instance.rs: Evaluated as low risk
- src/frontend/src/instance/logs.rs: Evaluated as low risk
- src/frontend/src/server.rs: Evaluated as low risk
- src/log-query/Cargo.toml: Evaluated as low risk
- src/log-query/src/error.rs: Evaluated as low risk
- src/log-query/src/log_query.rs: Evaluated as low risk
- src/servers/src/metrics.rs: Evaluated as low risk
- src/servers/src/interceptor.rs: Evaluated as low risk
- src/servers/Cargo.toml: Evaluated as low risk
- src/query/src/lib.rs: Evaluated as low risk
- Cargo.toml: Evaluated as low risk
- src/query/Cargo.toml: Evaluated as low risk
Comments suppressed due to low confidence (2)
src/query/src/log_query/planner.rs:112
- Handle the case where time_filter.start might be None before using it in the filter expression.
lit(ScalarValue::Utf8(time_filter.start.clone()))
src/query/src/planner.rs:193
- The
plan_logs_query
method should have unit tests to ensure the new functionality is covered.
async fn plan_logs_query(
Signed-off-by: Ruihang Xia <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5202 +/- ##
==========================================
- Coverage 84.11% 83.82% -0.29%
==========================================
Files 1177 1188 +11
Lines 219078 220280 +1202
==========================================
+ Hits 184276 184654 +378
- Misses 34802 35626 +824 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
Signed-off-by: Ruihang Xia <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
* define endpoint Signed-off-by: Ruihang Xia <[email protected]> * planner Signed-off-by: Ruihang Xia <[email protected]> * update lock file Signed-off-by: Ruihang Xia <[email protected]> * add unit test Signed-off-by: Ruihang Xia <[email protected]> * fix toml format Signed-off-by: Ruihang Xia <[email protected]> * revert metric change Signed-off-by: Ruihang Xia <[email protected]> * Update src/query/src/log_query/planner.rs Co-authored-by: Copilot <[email protected]> * fix compile Signed-off-by: Ruihang Xia <[email protected]> * refactor and tests Signed-off-by: Ruihang Xia <[email protected]> --------- Signed-off-by: Ruihang Xia <[email protected]> Co-authored-by: Copilot <[email protected]>
* define endpoint Signed-off-by: Ruihang Xia <[email protected]> * planner Signed-off-by: Ruihang Xia <[email protected]> * update lock file Signed-off-by: Ruihang Xia <[email protected]> * add unit test Signed-off-by: Ruihang Xia <[email protected]> * fix toml format Signed-off-by: Ruihang Xia <[email protected]> * revert metric change Signed-off-by: Ruihang Xia <[email protected]> * Update src/query/src/log_query/planner.rs Co-authored-by: Copilot <[email protected]> * fix compile Signed-off-by: Ruihang Xia <[email protected]> * refactor and tests Signed-off-by: Ruihang Xia <[email protected]> --------- Signed-off-by: Ruihang Xia <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Ruihang Xia [email protected]I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
A basic implementation of
v1/logs
query interface. Example:Checklist